#-------------------------------------------------
#
# Project created by QtCreator 2016-11-16T09:35:47
#
#-------------------------------------------------
#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS

QT += network xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TRANSLATIONS += programViewEnglishLan.ts

TARGET = programView
TEMPLATE = lib
DEFINES += PROGRAMVIEW_LIBRARY

SOURCES += programview.cpp \
    instructionmenu.cpp \
    instructionall.cpp \
    movemenu.cpp \
    palletmenu.cpp \
    flowmenu.cpp \
    registermenu.cpp \
    iomenu.cpp \
    othermenu.cpp \
    pointviewdialog.cpp \
    programsavedialog.cpp \
    stampmenu.cpp \
    guidanceMenu.cpp \
    modbusmenu.cpp \
    tcpcommunicationmenu.cpp \
    othernextpagemenu.cpp \
    instructionmenusecond.cpp \
    weldmenu.cpp \
    buttonfunctionmap.cpp \
    lasercameramenu.cpp

HEADERS += programview.h\
        programview_global.h \
    instructionmenu.h \
    instructionall.h \
    movemenu.h \
    palletmenu.h \
    flowmenu.h \
    registermenu.h \
    iomenu.h \
    othermenu.h \
    pointviewdialog.h \
    programsavedialog.h \
    stampmenu.h \
    guidanceMenu.h \
    modbusmenu.h \
    tcpcommunicationmenu.h \
    othernextpagemenu.h \
    instructionmenusecond.h \
    weldmenu.h \
    buttonfunctionmap.h \
    lasercameramenu.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}

FORMS += \
    programview.ui \
    instructionmenu.ui \
    instructionall.ui \
    movemenu.ui \
    palletmenu.ui \
    flowmenu.ui \
    registermenu.ui \
    iomenu.ui \
    othermenu.ui \
    pointviewdialog.ui \
    programsavedialog.ui \
    stampmenu.ui \
    guidanceMenu.ui \
    modbusmenu.ui \
    tcpcommunicationmenu.ui \
    othernextpagemenu.ui \
    instructionmenusecond.ui \
    weldmenu.ui \
    lasercameramenu.ui

INCLUDEPATH += ../WeldSettingView
INCLUDEPATH += ../ProgramSet
INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH += ../CommunicateDelegate
INCLUDEPATH += ../ProgramLanguageTranslate
INCLUDEPATH += ../DomParser

contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../lib/x86_WINDOWS

LIBS += -L../../lib/x86_WINDOWS -lHmiCommunicate

LIBS     += -L../../lib/x86_WINDOWS -lMotionInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lMotionInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lIfInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lIfInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lLabelJmpView
LIBS     += -L../../lib/x86_WINDOWS -lLabelJmpDelegate
LIBS     += -L../../lib/x86_WINDOWS -lWaitInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lWaitInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lForInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lForInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lRegisterInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lRegisterInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lSelectInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lSelectInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lSkipConditionView
LIBS     += -L../../lib/x86_WINDOWS -lSkipConditionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lOutputInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lOutputInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lCoordinateInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lCoordinateInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lOtherInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lOtherInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lPalletInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lPalletInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lVisionInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lVisionInstructionDelegate
LIBS     += -L../../lib/x86_WINDOWS -lStampInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lStampInstructionDelegate

# ********************************************************
# 修改者：     hualei
# 修改时间:    2018-06-21
# 修改说明：　增加MOVE_MAG、MOVE_FREE 导航指令属性和逻辑处理库
# *******************************************************
LIBS     += -L../../lib/x86_WINDOWS -lMoveMagInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lMoveMagInstructionDelegate

LIBS     += -L../../lib/x86_WINDOWS -lChargingInstructionView
<<<<<<< HEAD
=======

LIBS     += -L../../lib/x86_WINDOWS -lRollerInstructionView
LIBS     += -L../../lib/x86_WINDOWS -lRollerInstructionDelegate
>>>>>>> dev

}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../lib/x86

#LIBS += -L../../lib/x86 -lprogramView
#LIBS += -L../../lib/x86 -lHmiCommunicate

#LIBS += -L../../lib/x86 -lMotionInstructionView
#LIBS += -L../../lib/x86 -lMotionInstructionDelegate
#LIBS += -L../../lib/x86 -lIfInstructionView
#LIBS += -L../../lib/x86 -lIfInstructionDelegate
#LIBS += -L../../lib/x86 -lLabelJmpView
#LIBS += -L../../lib/x86 -lLabelJmpDelegate
#LIBS += -L../../lib/x86 -lWaitInstructionView
#LIBS += -L../../lib/x86 -lWaitInstructionDelegate
#LIBS += -L../../lib/x86 -lForInstructionView
#LIBS += -L../../lib/x86 -lForInstructionDelegate
#LIBS += -L../../lib/x86 -lRegisterInstructionView
#LIBS += -L../../lib/x86 -lRegisterInstructionDelegate
#LIBS += -L../../lib/x86 -lSelectInstructionView
#LIBS += -L../../lib/x86 -lSelectInstructionDelegate
#LIBS += -L../../lib/x86 -lSkipConditionView
#LIBS += -L../../lib/x86 -lSkipConditionDelegate
#LIBS += -L../../lib/x86 -lOutputInstructionView
#LIBS += -L../../lib/x86 -lOutputInstructionDelegate
#LIBS += -L../../lib/x86 -lCoordinateInstructionView
#LIBS += -L../../lib/x86 -lCoordinateInstructionDelegate
#LIBS += -L../../lib/x86 -lOtherInstructionView
#LIBS += -L../../lib/x86 -lOtherInstructionDelegate
#LIBS += -L../../lib/x86 -lPalletInstructionView
#LIBS += -L../../lib/x86 -lPalletInstructionDelegate
#LIBS += -L../../lib/x86 -lVisionInstructionView
#LIBS += -L../../lib/x86 -lVisionInstructionDelegate
#LIBS += -L../../lib/x86 -lStampInstructionView
#LIBS += -L../../lib/x86 -lStampInstructionDelegate

LIBS += -L../../lib/x86 -lMoveMagInstructionDelegate
LIBS += -L../../lib/x86 -lMoveMagInstructionView

LIBS += -L../../lib/x86 -lMoveFreeInstructionView
LIBS += -L../../lib/x86 -lMoveFreeInstructionDelegate

LIBS += -L../../lib/x86 -lModbusStartInstructionView
LIBS += -L../../lib/x86 -lModbusStartInstructionDelegate

LIBS += -L../../lib/x86 -lModbusReadInstructionView
LIBS += -L../../lib/x86 -lModbusReadInstructionDelegate

LIBS += -L../../lib/x86 -lModbusWriteInstructionView
LIBS += -L../../lib/x86 -lModbusWriteInstructionDelegate

LIBS += -L../../lib/x86 -lChargingInstructionView
LIBS += -L../../lib/x86 -lChargingInstructionDelegate

LIBS += -L../../lib/x86 -lLiftMechanismInstructionView
LIBS += -L../../lib/x86 -lLiftMechanismInstructionDelegate

LIBS += -L../../lib/x86 -lLoadMapInstructionView
LIBS += -L../../lib/x86 -lLoadMapInstructionDelegate

# ********************************************************
# 修改者：     丁培
# 修改时间:    2018-10-26
# 修改说明：　增加CHECK BATTERY指令属性和逻辑处理库
# *******************************************************
LIBS += -L../../lib/x86 -lCheckBatteryView
LIBS += -L../../lib/x86 -lCheckBatteryDelegate
<<<<<<< HEAD
=======
LIBS += -L../../lib/x86 -lWaitCommandView
LIBS += -L../../lib/x86 -lWaitCommandDelegate

LIBS += -L../../lib/x86 -lRollerInstructionView
LIBS += -L../../lib/x86 -lRollerInstructionDelegate
>>>>>>> dev

}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../lib/arm
}


#编译目录
UI_DIR += ../../build/tmphmi
MOC_DIR += ../../build/tmphmi
OBJECTS_DIR += ../../build/tmphmi
RCC_DIR += ../../build/tmphmi
